var developmentUrl = "http://localhost:3000/";
var developmentDbUrl = "mongodb://127.0.0.1:27017/aitest";


var dockerUrl = "http://localhost:3333/";
var dockerDbUrl = "mongodb://hj:hj207131@mongodb:27017/jinbeibei?authSource=admin";


var productUrl = "http://47.98.220.209:3333/";
var productDburl = "mongodb://hj:207131@47.98.220.209:27017/jinbeibei?authSource=admin";
let isPro = 0;


const urlMap = {
    0: developmentUrl,
    1: productUrl,
    2: dockerUrl,
}
const dbUrlMap = {
    0: developmentDbUrl,
    1: productDburl,
    2: dockerDbUrl,
}
const url = urlMap[isPro];
const dbUrl = dbUrlMap[isPro];
module.exports = {
    url,
    dbUrl,
    isPro
};
